package org.example.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
public class AdPosition {

    private Long id;
    private Integer createUser;

    @NotNull
    private Long clientId;
    @NotEmpty
    private String positionName;
    private String positionCode;
    @NotNull
    private Integer positionType;
    @NotEmpty
    private String dimensions;
    @NotNull
    private Integer price;
    @NotEmpty
    private String state;

    private LocalDate scheduledStart;
    private LocalDate scheduledEnd;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;//创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;//更新时间
}
